package com.woniuxy.project.campus.canteen.service;

import com.woniuxy.project.campus.canteen.model.AccountAddress;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.project.campus.canteen.param.AddAddressParam;
import com.woniuxy.project.campus.canteen.param.UpdateAddressParam;
import com.woniuxy.project.campus.canteenModelform.AddAddressForm;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 猫将军
 * @since 2025年02月17日
 */
public interface AccountAddressService extends IService<AccountAddress> {

    void addAddress(AddAddressParam bean);

    List<AccountAddress> getAddress(String token);

    void deleteAddress(UpdateAddressParam bean);

    void deleteAddress(String token, Integer addressId);

    void setDefaultAddress(String token, Integer addressId);

    Integer getAddressId(AddAddressForm form);
}
